﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HotelManagement
{
    public partial class DayPicker : Form
    {
        public int day;
        public int month;
        public int year;

        public DayPicker()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            day = faMonthView1.SelectedDateTime.Day;
            month = faMonthView1.SelectedDateTime.Month;
            year = faMonthView1.SelectedDateTime.Year;

            this.Close();
        }

        private void DayPicker_Load(object sender, EventArgs e)
        {
            faMonthView1.DefaultCalendar = faMonthView1.PersianCalendar;
            faMonthView1.DefaultCulture = faMonthView1.PersianCulture;
            faMonthView1.SelectedDateTime = DateTime.Now;
            
        }

        public int getday() 
        {
            return day;
        }

        public int getmonth()
        {
            return month;
        }

        public int getyear()
        {
            return year;
        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            day = faMonthView1.SelectedDateTime.Day;
            month = faMonthView1.SelectedDateTime.Month;
            year = faMonthView1.SelectedDateTime.Year;

            this.Close();
        }

    }
}
